<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>prototype_CIS_525_HW3</title>
	</head>
	<body>
		<?php
			if(!preg_match("/[0-9]{8}/", $_POST["tbxUmid"]))
			{
				print("<p class = 'error'>Invalid UMID</p>");
			}
			
			if(!preg_match("/[A-Za-z0-9._%+-]+@[A-Za-z0-9]{1,20}(.[A-Za-z0-9]{1,20}){1,3}/", $_POST["tbxEmail"]))
			{
				print("<p class = 'error'>Invalid E-mail</p>");
			}
			
			if(!preg_match("/[0-9]{3}-[0-9]{3}-[0-9]{4}/", $_POST["tbxPhone"]))
			{
				print("<p class = 'error'>Invalid phone</p>");
			}
		?>
	</body>
</html>
